#include "xprocess.h"
#include "fs.h"
#include "isys.h"

namespace log4x
{
int
process::pid()
{
    return os::process()->pid();
}

string
process::ppath(int pid)
{
    return os::process()->ppath(pid);
}

string
process::pname()
{
    string filename = ppath();
    return fs::basename(filename);
}

int
process::pids(const string& pname, vector<int>& pids, vector<string>& cmdLines)
{
    return os::process()->pids(pname, pids, cmdLines);
}

}
